package tw.miku.protocol.codec.gold;

import org.apache.mina.core.buffer.IoBuffer;

import tw.miku.constants.ProtocalConstants;
import tw.miku.protocol.codec.AbstractRequestMessagePack;

public class SetToolToUserRequestPack extends AbstractRequestMessagePack
{

	public int cardId;
	public long userId;

	public SetToolToUserRequestPack(IoBuffer buffer)
	{
		super(buffer);
	}

	@Override
	public void decode()
	{
		super.decode();
		buffer.position(4);
		cardId = buffer.getInt();
		userId = buffer.getUnsignedInt();

	}

	@Override
	public short getTag()
	{
		return ProtocalConstants.SET_TOOL_TO_USER;
	}
}
